<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pContract
 *
 * @ORM\Table(name="p2p_contract")
 * @ORM\Entity
 */
class P2pContract
{
    /**
     * @var boolean
     *
     * @ORM\Column(name="type", type="boolean", nullable=false)
     */
    private $type = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="fileurl", type="text", length=65535, nullable=false)
     */
    private $fileurl;

    /**
     * @var string
     *
     * @ORM\Column(name="fileurl1", type="text", length=65535, nullable=false)
     */
    private $fileurl1;

    /**
     * @var string
     *
     * @ORM\Column(name="contract_title", type="string", length=60, nullable=false)
     */
    private $contractTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="sign_keyword", type="string", length=20, nullable=false)
     */
    private $signKeyword;

    /**
     * @var string
     *
     * @ORM\Column(name="contract_type", type="string", length=60, nullable=false)
     */
    private $contractType;

    /**
     * @var string
     *
     * @ORM\Column(name="contract_content", type="text", length=65535, nullable=false)
     */
    private $contractContent;

    /**
     * @var string
     *
     * @ORM\Column(name="app_contract_content", type="text", nullable=false)
     */
    private $appContractContent;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_sent", type="boolean", nullable=false)
     */
    private $isSent = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="sent_time", type="integer", nullable=false)
     */
    private $sentTime = '0';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_post", type="boolean", nullable=false)
     */
    private $isPost = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="post_time", type="integer", nullable=false)
     */
    private $postTime = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="send_adminid", type="integer", nullable=false)
     */
    private $sendAdminid = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="contract_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $contractId;



    /**
     * Set type
     *
     * @param boolean $type
     *
     * @return P2pContract
     */
    public function setType($type)
    {
        $this->type = $type;

        return $this;
    }

    /**
     * Get type
     *
     * @return boolean
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Set fileurl
     *
     * @param string $fileurl
     *
     * @return P2pContract
     */
    public function setFileurl($fileurl)
    {
        $this->fileurl = $fileurl;

        return $this;
    }

    /**
     * Get fileurl
     *
     * @return string
     */
    public function getFileurl()
    {
        return $this->fileurl;
    }

    /**
     * Set fileurl1
     *
     * @param string $fileurl1
     *
     * @return P2pContract
     */
    public function setFileurl1($fileurl1)
    {
        $this->fileurl1 = $fileurl1;

        return $this;
    }

    /**
     * Get fileurl1
     *
     * @return string
     */
    public function getFileurl1()
    {
        return $this->fileurl1;
    }

    /**
     * Set contractTitle
     *
     * @param string $contractTitle
     *
     * @return P2pContract
     */
    public function setContractTitle($contractTitle)
    {
        $this->contractTitle = $contractTitle;

        return $this;
    }

    /**
     * Get contractTitle
     *
     * @return string
     */
    public function getContractTitle()
    {
        return $this->contractTitle;
    }

    /**
     * Set signKeyword
     *
     * @param string $signKeyword
     *
     * @return P2pContract
     */
    public function setSignKeyword($signKeyword)
    {
        $this->signKeyword = $signKeyword;

        return $this;
    }

    /**
     * Get signKeyword
     *
     * @return string
     */
    public function getSignKeyword()
    {
        return $this->signKeyword;
    }

    /**
     * Set contractType
     *
     * @param string $contractType
     *
     * @return P2pContract
     */
    public function setContractType($contractType)
    {
        $this->contractType = $contractType;

        return $this;
    }

    /**
     * Get contractType
     *
     * @return string
     */
    public function getContractType()
    {
        return $this->contractType;
    }

    /**
     * Set contractContent
     *
     * @param string $contractContent
     *
     * @return P2pContract
     */
    public function setContractContent($contractContent)
    {
        $this->contractContent = $contractContent;

        return $this;
    }

    /**
     * Get contractContent
     *
     * @return string
     */
    public function getContractContent()
    {
        return $this->contractContent;
    }

    /**
     * Set appContractContent
     *
     * @param string $appContractContent
     *
     * @return P2pContract
     */
    public function setAppContractContent($appContractContent)
    {
        $this->appContractContent = $appContractContent;

        return $this;
    }

    /**
     * Get appContractContent
     *
     * @return string
     */
    public function getAppContractContent()
    {
        return $this->appContractContent;
    }

    /**
     * Set isSent
     *
     * @param boolean $isSent
     *
     * @return P2pContract
     */
    public function setIsSent($isSent)
    {
        $this->isSent = $isSent;

        return $this;
    }

    /**
     * Get isSent
     *
     * @return boolean
     */
    public function getIsSent()
    {
        return $this->isSent;
    }

    /**
     * Set sentTime
     *
     * @param integer $sentTime
     *
     * @return P2pContract
     */
    public function setSentTime($sentTime)
    {
        $this->sentTime = $sentTime;

        return $this;
    }

    /**
     * Get sentTime
     *
     * @return integer
     */
    public function getSentTime()
    {
        return $this->sentTime;
    }

    /**
     * Set isPost
     *
     * @param boolean $isPost
     *
     * @return P2pContract
     */
    public function setIsPost($isPost)
    {
        $this->isPost = $isPost;

        return $this;
    }

    /**
     * Get isPost
     *
     * @return boolean
     */
    public function getIsPost()
    {
        return $this->isPost;
    }

    /**
     * Set postTime
     *
     * @param integer $postTime
     *
     * @return P2pContract
     */
    public function setPostTime($postTime)
    {
        $this->postTime = $postTime;

        return $this;
    }

    /**
     * Get postTime
     *
     * @return integer
     */
    public function getPostTime()
    {
        return $this->postTime;
    }

    /**
     * Set sendAdminid
     *
     * @param integer $sendAdminid
     *
     * @return P2pContract
     */
    public function setSendAdminid($sendAdminid)
    {
        $this->sendAdminid = $sendAdminid;

        return $this;
    }

    /**
     * Get sendAdminid
     *
     * @return integer
     */
    public function getSendAdminid()
    {
        return $this->sendAdminid;
    }

    /**
     * Get contractId
     *
     * @return integer
     */
    public function getContractId()
    {
        return $this->contractId;
    }
}
